Search
Clock Control SystemWait, wait, wait! Sure, I know how to build a big digit - but how the heck did you control that much current with such few ICs and such few control lines? Ahh, I'm glad you asked. Here are some fun pointers about how to control large numbers of 7 segments LEDs. Now if you're not a hardware person, get ready for some technical jargon. A PIC 16F877A has quite a few I/O pins (around 32). But if you start doing the math, you see just how limited we are.
Sure, we could find a microcontroller that has 42 available I/O pins, but there's got to be a better way! This is actually an age-old problem. Turns out there are chips out there! The 74HC4511 is the magical chip that takes a Binary-Coded-Decimal (BCD) input and outputs the correct pins to create that binary number on a 7-segment display. Okay, so we go from 7 lines down to 4, big deal? There is a latch on the 74HC4511. This latch allows us to share the 4-bit bus with all the channels, and then just toggle the latch pin on the digit we need to talk to. Maybe a schematic will help: Here is the PIC 16F877A connections You can see 4 Control lines. This is the BCD bus. There is also 6 Driver lines. These Driver lines activate the latch on each 'channel'. This is the circuitry for one channel U6 is the 74HC4511. U7 is a ULN2003A. JP1 is the RJ45 jack. Just stick with me a bit longer! The ULN2003A is a high-current Darlington array. Darling what? This IC has 7 channels. Each channel can control up to 500mA. When 1B goes high, current is allowed from the '1C' input to ground. So when the Num1_f pin goes high, current flows from RAW, through the LED light bars in the big digit, into 1C, and then out through GND. This may seem a little bit odd at first. Maybe this will help: Over-simplified ULN single-channel. When 1B goes high, current is allowed to pass from 1C to GND. This is the circuitry for one channel Ok - so now for the chain of events.
It's really pretty slick. The system is completely scalable. To add another 7-segment display requires only 1 additional I/O pin for another DriverX line. The PIC 16F877A could control as many as 28 digits. Have you ever seen 28 digits next to each other? How about 18" wide and on a wall? That's really huge. Here are the 6-channels Here they are on the PCB. You can see a 74HC4511 next to a ULN2003A, next to an RJ45 jack for each channel. That's it! Sorry the tutorial ended up being so long. This project took about two weeks of cutting and figuring out how to best create the digits. The firmware took about an hour and hardware layout took about three (we've used most of the basic components before). Let us know what you think. -NES March 19th, 2006 |
|
Feeds
Currency
Display prices in
Feedback
If you would like to tell us more, you can fill out our form if you need some psycho-suggestive questions. Go to the form.









I would be interested to see a schematic of some sorts, even a simplified one would be nice...
thanx!
can you pls put up the schematic of the board on the site???
http://www.youtube.com/watch?v=rkOoHor347s